#ifndef LISTWIDGETWORKER_H
#define LISTWIDGETWORKER_H

#include<QFileInfo>
// #include<QPointer>
#include<QThread> 
#include<QUrl>

class Song;

class ListWidgetWorker: public QThread{
Q_OBJECT
public:
	ListWidgetWorker();
	~ListWidgetWorker();
	
	virtual void run();
	
	void addUrls( QList<QUrl> urlsList ) { m_urlsListList.push_back(urlsList); }
signals:
	void addSong(Song*);
private:
	void droppedFile(QString path);
	void droppedDir(QString path);
	
	QList< QList<QUrl> > m_urlsListList;
};

#endif
